.class public Lcom/waiqin365/lightapp/product/b/a/m;
.super Lcom/waiqin365/lightapp/product/b/d;


# instance fields
.field public b:Ljava/lang/String;

.field public c:Ljava/lang/String;

.field public d:I

.field public e:I

.field public f:I

.field public g:I

.field public h:Lcom/waiqin365/lightapp/product/d/h;

.field public i:Ljava/util/List;

.field public j:Ljava/util/List;

.field private o:Z


# direct methods
.method public constructor <init>()V
    .locals 1

    const/16 v0, 0x70

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/product/b/d;-><init>(I)V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/product/b/a/m;->i:Ljava/util/List;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/product/b/a/m;->j:Ljava/util/List;

    return-void
.end method


# virtual methods
.method public a()Z
    .locals 1

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/product/b/a/m;->o:Z

    return v0
.end method

.method public a(Ljava/lang/String;)Z
    .locals 9

    const/4 v1, 0x1

    const/4 v2, 0x0

    :try_start_0
    new-instance v5, Lorg/json/JSONObject;

    invoke-direct {v5, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string/jumbo v0, "code"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_5

    const-string/jumbo v0, "code"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/product/b/a/m;->b:Ljava/lang/String;

    const-string/jumbo v0, "1"

    iget-object v3, p0, Lcom/waiqin365/lightapp/product/b/a/m;->b:Ljava/lang/String;

    invoke-virtual {v0, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_6

    const-string/jumbo v0, "total"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    const-string/jumbo v0, "total"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const/4 v3, 0x0

    invoke-static {v0, v3}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;I)I

    move-result v0

    iput v0, p0, Lcom/waiqin365/lightapp/product/b/a/m;->d:I

    :cond_0
    const-string/jumbo v0, "totalPage"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_1

    const-string/jumbo v0, "totalPage"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const/4 v3, 0x0

    invoke-static {v0, v3}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;I)I

    move-result v0

    iput v0, p0, Lcom/waiqin365/lightapp/product/b/a/m;->e:I

    :cond_1
    const-string/jumbo v0, "curPage"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_2

    const-string/jumbo v0, "curPage"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const/4 v3, 0x0

    invoke-static {v0, v3}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;I)I

    move-result v0

    iput v0, p0, Lcom/waiqin365/lightapp/product/b/a/m;->f:I

    :cond_2
    const-string/jumbo v0, "recPerPage"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_3

    const-string/jumbo v0, "recPerPage"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const/4 v3, 0x0

    invoke-static {v0, v3}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/String;I)I

    move-result v0

    iput v0, p0, Lcom/waiqin365/lightapp/product/b/a/m;->g:I

    :cond_3
    const-string/jumbo v0, "types"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_d

    new-instance v0, Lcom/waiqin365/lightapp/product/d/h;

    invoke-direct {v0}, Lcom/waiqin365/lightapp/product/d/h;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/product/b/a/m;->h:Lcom/waiqin365/lightapp/product/d/h;

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/b/a/m;->h:Lcom/waiqin365/lightapp/product/d/h;

    const/4 v3, 0x1

    iput v3, v0, Lcom/waiqin365/lightapp/product/d/h;->f:I

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/b/a/m;->h:Lcom/waiqin365/lightapp/product/d/h;

    const-string/jumbo v3, "-1"

    iput-object v3, v0, Lcom/waiqin365/lightapp/product/d/h;->a:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/b/a/m;->h:Lcom/waiqin365/lightapp/product/d/h;

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v3

    const v4, 0x7f0802dd

    invoke-virtual {v3, v4}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->getString(I)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v0, Lcom/waiqin365/lightapp/product/d/h;->c:Ljava/lang/String;

    new-instance v6, Ljava/util/HashMap;

    invoke-direct {v6}, Ljava/util/HashMap;-><init>()V

    const-string/jumbo v0, "-1"

    iget-object v3, p0, Lcom/waiqin365/lightapp/product/b/a/m;->h:Lcom/waiqin365/lightapp/product/d/h;

    invoke-virtual {v6, v0, v3}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string/jumbo v0, "types"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v7

    if-eqz v7, :cond_c

    invoke-virtual {v7}, Lorg/json/JSONArray;->length()I

    move-result v0

    if-lez v0, :cond_c

    move v4, v2

    :goto_0
    invoke-virtual {v7}, Lorg/json/JSONArray;->length()I

    move-result v0

    if-ge v4, v0, :cond_c

    invoke-virtual {v7, v4}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v3

    new-instance v8, Lcom/waiqin365/lightapp/product/d/h;

    invoke-direct {v8}, Lcom/waiqin365/lightapp/product/d/h;-><init>()V

    const-string/jumbo v0, "id"

    invoke-virtual {v3, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_8

    const-string/jumbo v0, ""

    :goto_1
    iput-object v0, v8, Lcom/waiqin365/lightapp/product/d/h;->a:Ljava/lang/String;

    const-string/jumbo v0, "name"

    invoke-virtual {v3, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_9

    const-string/jumbo v0, ""

    :goto_2
    iput-object v0, v8, Lcom/waiqin365/lightapp/product/d/h;->c:Ljava/lang/String;

    const-string/jumbo v0, "parent_id"

    invoke-virtual {v3, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_a

    const-string/jumbo v0, ""

    :goto_3
    iput-object v0, v8, Lcom/waiqin365/lightapp/product/d/h;->b:Ljava/lang/String;

    const/4 v0, 0x1

    iput-boolean v0, v8, Lcom/waiqin365/lightapp/product/d/h;->d:Z

    iget-object v0, v8, Lcom/waiqin365/lightapp/product/d/h;->b:Ljava/lang/String;

    invoke-virtual {v6, v0}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    iget-object v0, v8, Lcom/waiqin365/lightapp/product/d/h;->b:Ljava/lang/String;

    invoke-virtual {v6, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/product/d/h;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/product/d/h;->a()Ljava/util/List;

    move-result-object v3

    invoke-interface {v3, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    iget-object v3, v0, Lcom/waiqin365/lightapp/product/d/h;->e:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v3

    if-nez v3, :cond_b

    move v3, v1

    :goto_4
    iput-boolean v3, v0, Lcom/waiqin365/lightapp/product/d/h;->d:Z

    :cond_4
    iget-object v0, v8, Lcom/waiqin365/lightapp/product/d/h;->a:Ljava/lang/String;

    invoke-virtual {v6, v0, v8}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    add-int/lit8 v0, v4, 0x1

    move v4, v0

    goto :goto_0

    :cond_5
    move v0, v2

    :goto_5
    return v0

    :cond_6
    const-string/jumbo v0, "message"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_7

    const-string/jumbo v0, "message"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/product/b/a/m;->c:Ljava/lang/String;

    :cond_7
    move v0, v1

    goto :goto_5

    :cond_8
    const-string/jumbo v0, "id"

    invoke-virtual {v3, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_1

    :cond_9
    const-string/jumbo v0, "name"

    invoke-virtual {v3, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_2

    :cond_a
    const-string/jumbo v0, "parent_id"

    invoke-virtual {v3, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_3

    :cond_b
    move v3, v2

    goto :goto_4

    :cond_c
    invoke-virtual {v6}, Ljava/util/HashMap;->clear()V

    :cond_d
    const-string/jumbo v0, "brands"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_e

    const-string/jumbo v0, "brands"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v3

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/b/a/m;->i:Ljava/util/List;

    new-instance v4, Lcom/waiqin365/base/c/a;

    const-string/jumbo v6, ""

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v7

    const v8, 0x7f0802dd

    invoke-virtual {v7, v8}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->getString(I)Ljava/lang/String;

    move-result-object v7

    invoke-direct {v4, v6, v7}, Lcom/waiqin365/base/c/a;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-interface {v0, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    if-eqz v3, :cond_e

    invoke-virtual {v3}, Lorg/json/JSONArray;->length()I

    move-result v0

    if-lez v0, :cond_e

    move v0, v2

    :goto_6
    invoke-virtual {v3}, Lorg/json/JSONArray;->length()I

    move-result v4

    if-ge v0, v4, :cond_e

    invoke-virtual {v3, v0}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v4

    new-instance v6, Lcom/waiqin365/base/c/a;

    const-string/jumbo v7, "id"

    invoke-virtual {v4, v7}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v7

    const-string/jumbo v8, "name"

    invoke-virtual {v4, v8}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v6, v7, v4}, Lcom/waiqin365/base/c/a;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v4, p0, Lcom/waiqin365/lightapp/product/b/a/m;->i:Ljava/util/List;

    invoke-interface {v4, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    add-int/lit8 v0, v0, 0x1

    goto :goto_6

    :cond_e
    const-string/jumbo v0, "datas"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_15

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/b/a/m;->j:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    const-string/jumbo v0, "datas"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v4

    move v3, v2

    :goto_7
    invoke-virtual {v4}, Lorg/json/JSONArray;->length()I

    move-result v0

    if-ge v3, v0, :cond_15

    invoke-virtual {v4, v3}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v5

    new-instance v6, Lcom/waiqin365/lightapp/product/d/f;

    invoke-direct {v6}, Lcom/waiqin365/lightapp/product/d/f;-><init>()V

    const-string/jumbo v0, "id"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_f

    const-string/jumbo v0, "id"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v6, v0}, Lcom/waiqin365/lightapp/product/d/f;->a(Ljava/lang/String;)V

    const-string/jumbo v0, "spec"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_10

    const-string/jumbo v0, ""

    :goto_8
    invoke-virtual {v6, v0}, Lcom/waiqin365/lightapp/product/d/f;->e(Ljava/lang/String;)V

    const-string/jumbo v0, "unit"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_11

    const-string/jumbo v0, ""

    :goto_9
    invoke-virtual {v6, v0}, Lcom/waiqin365/lightapp/product/d/f;->j(Ljava/lang/String;)V

    const-string/jumbo v0, "price"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_12

    const-string/jumbo v0, ""

    :goto_a
    invoke-static {v0}, Lcom/fiberhome/gaea/client/d/k;->e(Ljava/lang/String;)Ljava/lang/Double;

    move-result-object v0

    invoke-virtual {v6, v0}, Lcom/waiqin365/lightapp/product/d/f;->a(Ljava/lang/Double;)V

    const-string/jumbo v0, "name"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_13

    const-string/jumbo v0, ""

    :goto_b
    invoke-virtual {v6, v0}, Lcom/waiqin365/lightapp/product/d/f;->b(Ljava/lang/String;)V

    const-string/jumbo v0, "barcode"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_14

    const-string/jumbo v0, ""

    :goto_c
    invoke-virtual {v6, v0}, Lcom/waiqin365/lightapp/product/d/f;->i(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/b/a/m;->j:Ljava/util/List;

    invoke-interface {v0, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_f
    add-int/lit8 v0, v3, 0x1

    move v3, v0

    goto :goto_7

    :cond_10
    const-string/jumbo v0, "spec"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_8

    :cond_11
    const-string/jumbo v0, "unit"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_9

    :cond_12
    const-string/jumbo v0, "price"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_a

    :cond_13
    const-string/jumbo v0, "name"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    goto :goto_b

    :cond_14
    const-string/jumbo v0, "barcode"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v0

    goto :goto_c

    :catch_0
    move-exception v0

    move v0, v2

    goto/16 :goto_5

    :cond_15
    move v0, v1

    goto/16 :goto_5
.end method

.method public b(Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/waiqin365/lightapp/product/b/a/m;->o:Z

    return-void
.end method
